#ifndef CUSER_H
#define CUSER_H

#include <QObject>

#include "CNetwork.h"
#include "CDataBase.h"
#include "CCharacters.h"
#include "CLog.h"

class CUser : public QObject
{
    Q_OBJECT
    private:
        CNetwork *c_network;
        CDataBase *c_database;
        CCharacters *c_characters;
    public:
        CUser();
        ~CUser();

        CNetwork* get_network();

    signals:
        void authentification_ok(QString, QString);
        void authentification_failed(QString, QString);

    public slots:
        bool start(quint16 port);
        void login(MClient* client);
};

#endif // CUSER_H
